home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 414_02 / nonport / border.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-17  |  1.2 KB  |  46 lines

  1. #define    CURSES_LIBRARY    1
  2. #include <curses.h>
  3. #undef    border
  4.  
  5. #ifdef PDCDEBUG
  6. char *rcsid_border = "$Header: C:\CURSES\nonport\RCS\border.c 2.1 1993/06/18 20:22:04 MH Rel MH $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   border()    - sets the border characters in the stdscr window.
  15.  
  16.   PDCurses Description:
  17.      This routine sets the border characters for stdscr.
  18.  
  19.      WARNING:
  20.          Don't make this a call to wborder() - it would
  21.          require too much stack for parameters.
  22.      
  23.   PDCurses Return Value:
  24.      This function returns OK upon success otherwise ERR is returned.
  25.  
  26.   PDCurses Errors:
  27.      It is an error for stdscr to be a NULL pointer.
  28.  
  29.   Portability:
  30.      PDCurses    int border( chtype l,  chtype r,  chtype t,  chtype b,
  31.                      chtype tl, chtype tr  chtype bl, chtype br );
  32.  
  33. **man-end**********************************************************************/
  34.  
  35. int    border(chtype l,chtype r,chtype t,chtype b,chtype tl,chtype tr,chtype bl,chtype br)
  36. {
  37. #ifdef PDCDEBUG
  38.     if (trace_on) PDC_debug("border() - called\n");
  39. #endif
  40.  
  41.     if (stdscr == (WINDOW *)NULL)
  42.         return( ERR );
  43.  
  44.     return( wborder( stdscr, l, r, t, b, tl, tr, bl, br ) );
  45. }
  46.